package com.json;

import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;

/**
 * @author keyer
 * @Description : 描述
 * Created by cyd on 2021-04-16 17:51:41
 */
public class TestJsonArray {
    public static void main(String[] args) {
        JSONArray array = new JSONArray("[3, 1, 4, 1, 5, 9, 2, 6]");
        System.out.println(array);
        array.forEach(o -> {
            //System.out.println(o.getClass());
            //JSONObject p = (JSONObject) o;
            JSONObject p = JSONUtil.parseObj(o);
            System.out.println(p);
        });
    }
}
